/**
 * 
 */
package com.unsanctioned.radioagregator.http;

import org.springframework.web.client.RestTemplate;

import android.os.AsyncTask;

/**
 * Class for HTTPRequest. This acts as the mother of all HTTPRequests descended from this one.
 * This class uses RestTemplate to work. 
 * @author wizard
 */
public class HttpRequest extends AsyncTask<String, Void, String[]>{
	public static final String DOGTAG = HttpRequest.class.getSimpleName();
	private RestTemplate rest;
	
	public HttpRequest() {
		// TODO Auto-generated constructor stub
	}
	
	@Override
	protected void onPreExecute() {
		// TODO Auto-generated method stub
		super.onPreExecute();
	}
	
	@Override
	protected String[] doInBackground(String... params) {
		// TODO Auto-generated method stub
		/*
		 * String array always contains two elements: header is a String and body is a String.
		 * A header is read from cookie attached at RestTemplate instance. A body is the same.
		 */
		return null;
	}
	
	@Override
	protected void onPostExecute(String[] result) {
		// TODO Auto-generated method stub
		super.onPostExecute(result);
	}
}
